package org.destiny.swing.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import javax.swing.JComponent;

@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
public @interface FormItem {
	public static final String DEFAULT_LABEL = "DEFAULT_LABEL";

	String label() default DEFAULT_LABEL;

	Class<? extends JComponent> mappingClass() default JComponent.class;

	int prefWidth() default -1;

	int prefHeight() default -1;

	Class<? extends IArrayProducer> optionsProducer() default IArrayProducer.class;

}
